﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OwnerTransferRptQuery.aspx.cs" Inherits="WMS6.Web.Analytics.OwnerTransferRptQuery" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>货权转移报告</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>

    <script type="text/javascript">
       
        //初始化页面
        window.onload = function(){
            initQueryPage();
        }
        
         //窗口大小改变时触发的事件
        window.onresize = function()
	    {
	        autoResizeQueryDiv("div_query");
	    }
	    
	    //弹出窗口选择原货主
        function selectOwner()
        {
            var rtnValue = popModalWindow('../Configuration/OwnerQuery.aspx?action=txtFromOwnerID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtFromOwnerID").focus();
                document.getElementById("txtFromOwnerID").value = rtnValue;
            }
        }
        
        //弹出窗口选择至货主
        function selectOwner()
        {
            var rtnValue = popModalWindow('../Configuration/OwnerQuery.aspx?action=txtToOwnerID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtToOwnerID").focus();
                document.getElementById("txtToOwnerID").value = rtnValue;
            }
        }
	    
	    //弹出窗口选择原货品
        function selectFromSku()
        {
            var rtnValue = popModalWindow('../Configuration/SKUQuery.aspx?action=txtFromSkuID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtFromSkuID").focus();
                document.getElementById("txtFromSkuID").value = rtnValue;
            }
        }
        
        //弹出窗口选择至货品
        function selectToSKU()
        {
            var rtnValue = popModalWindow('../Configuration/SKUQuery.aspx?action=txtToSkuID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtToSkuID").focus();
                document.getElementById("txtToSkuID").value = rtnValue;
            }
        }
    </script>
</head>
<body>
    <form id="F15340" runat="server">
    <div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="divL1">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur" onclick="setTab('one',1,1)"
                id="divM1">
                <asp:Label ID="one1" CssClass="hover" runat="server" 
                    meta:resourcekey="one1">常规</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="divR1">
                </div>
            </div>
         
        </div>
        <div id="div_query">
            <div id="con_one_1" style="display: block;">
                <table width="580px" cellpadding="0" cellspacing="0">
                    <tr>
                        <td style="width:180px">
                            <asp:Label ID="lblTransferID" runat="server" CssClass="label" Text="库存转移单号" 
                                ></asp:Label>
                        </td>
                        <td style="width:30px">
                            &nbsp;
                        </td>
                        <td style="width:160px">
                            &nbsp;
                        </td>
                        <td style="width:200px"></td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtTransferID" runat="server" CssClass="textbox" ></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlTransferID" runat="server" CssClass="selectbox" >
                            </asp:DropDownList>
                        </td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblFromOwnerID" runat="server" CssClass="label" Text="原货主代码" ></asp:Label>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtFromOwnerID" runat="server" CssClass="textbox" ></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectFromOwner();"/>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlFromOwnerID" runat="server" CssClass="selectbox" >
                            </asp:DropDownList>
                        </td>
                        <td></td>
                    </tr>
                    
                    <tr>
                        <td>
                            <asp:Label ID="lblToOwnerID" runat="server" CssClass="label" Text="至货主代码" ></asp:Label>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtToOwnerID" runat="server" CssClass="textbox" ></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectToOwner();"/>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlToOwnerID" runat="server" CssClass="selectbox"  >
                            </asp:DropDownList>
                        </td>
                        <td></td>
                    </tr>
                    
                    
                    <tr>
                        <td>
                            <asp:Label ID="lblFromSkuID" runat="server" CssClass="label" Text="原货品代码" 
                               ></asp:Label>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtFromSkuID" runat="server" CssClass="textbox" ></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectFromSku();"/>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlFromSkuID" runat="server" CssClass="selectbox"  >
                            </asp:DropDownList>
                        </td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblFromDescr" runat="server" CssClass="label" Text="原货品描述" 
                                ></asp:Label>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtFromDescr" runat="server" CssClass="textbox" ></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlFromDescr" runat="server" CssClass="selectbox" >
                            </asp:DropDownList>
                        </td>
                        <td></td>
                    </tr>
                    
                           
                    <tr>
                        <td>
                            <asp:Label ID="lblToSkuID" runat="server" CssClass="label" Text="至货品代码"  ></asp:Label>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtToSkuID" runat="server" CssClass="textbox" ></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectToSku();"/>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlToSkuID" runat="server" CssClass="selectbox" 
                                meta:resourcekey="ddlSkuID">
                            </asp:DropDownList>
                        </td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblToDescr" runat="server" CssClass="label" Text="至货品描述" 
                                ></asp:Label>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtToDescr" runat="server" CssClass="textbox" ></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlToDescr" runat="server" CssClass="selectbox" >
                            </asp:DropDownList>
                        </td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblTransferDate" runat="server" CssClass="label" 
                                Text="转移日期" ></asp:Label>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtTransferDate" runat="server" CssClass="textbox" ></asp:TextBox>
                            <img src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtTransferDate)" />
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlTransferDate" runat="server" CssClass="selectbox" 
                                onchange="showAnotherDate(this.options[this.options.selectedIndex].value,div1,img2);" >
                            </asp:DropDownList>
                        </td>
                        <td>
                            <div style="display:none;" id="div1">
                                <asp:TextBox ID="txtTransferDate2" runat="server" CssClass="textbox" ></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" id="img2" runat="server" onclick="setday(this,txtTransferDate2)"/>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div id="div_bottom">
            <table>
                <tr>
                    <td>
                        <asp:Button ID="btnSearch" runat="server" Text="<%$Resources:ButtonResource,btnSearch%>" Enabled="False" CssClass="button"
                            OnClick="btnSearch_Click"  />
                    </td>
                </tr>
            </table>
        </div>
        <input id="hdnActionID" type="hidden" runat="server" />
        <input type="hidden" id="hdnDataFormat" runat="server" />
        <input type="hidden" id="hdncalendarFlag" runat="server" />
    </div>
    </form>
</body>
</html>
<script language="javascript" type="text/javascript" event="onclick" for="document">
		<!--
			hiddenCalendarDiv();
		//-->
</script>